package com.example.system.service;


import com.example.common.utils.R;
import com.example.system.dto.JobDTO;
import com.example.system.entity.QuartzJob;
import org.quartz.SchedulerException;

import java.util.List;

/**
 * @Author 王鹤蒲
 * @Date 2023 11 20
 */
public interface QuartzJobService {

    public R addJob(QuartzJob quartzJob) throws SchedulerException, ClassNotFoundException;

    public R deleteJob(String jobName,String jobGroupName) throws SchedulerException;

    public R pauseJob(String jobName,String jobGroupName) throws SchedulerException;

    public R continueJob(String jobName,String jobGroupName) throws SchedulerException;

    public QuartzJob getQuartzJob(String jobName,String jobGroupName) throws SchedulerException;

    public R getQuartzJobList(JobDTO jobDTO, int currentPage, int pageSize) throws SchedulerException;

    public R deleteBatch( List<JobDTO> jobDTOList);

    public R updateJob(QuartzJob quartzJob,String quartzJobName,String quartzJobGroupName) throws SchedulerException, ClassNotFoundException;

    public R updateJobStatus(String jobName,String jobGroupName,Boolean status);
}
